package www.wxwnb.clerk.base;

import android.app.ProgressDialog;
import android.content.Context;
import android.os.Bundle;

import www.wxwnb.clerk.R;

/**
 * Created by dingguanxu on 2017/8/22.
 */

public class UploadProgressDialog extends ProgressDialog {

    public UploadProgressDialog(Context context, int theme) {
        super(context, theme);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.setCancelable(false);
        this.setCanceledOnTouchOutside(false);
        this.setContentView(R.layout.progress_dialog_upload);
        /*WindowManager.LayoutParams attributes = this.getWindow().getAttributes();
        attributes.width = WindowManager.LayoutParams.WRAP_CONTENT;
        attributes.height = WindowManager.LayoutParams.WRAP_CONTENT;
        attributes.alpha = 0.6F;
        getWindow().setAttributes(attributes);*/
    }
}
